package cloud.maque.admin.mapper;


import cloud.maque.admin.domain.entity.MqMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zhuyf
 * @date 2023/3/17 10:19
 */
@Mapper
public interface MqMenuMapper extends BaseMapper<MqMenu> {

    List<MqMenu> getUserMenu(String userId);

    /**
     * 读取套餐和本身租户的角色菜单
     *
     * @param userId
     * @param tenantId
     * @return
     */
    List<MqMenu> getUserMenuByTenantCombo(String userId, String tenantId);

}
